package com.weaver;

import com.weaver.controller.Controller;
import com.weaver.model.Model;
import com.weaver.view.View;

import javax.swing.*;

/**
 * WeaverGUI class - Main class for the GUI version
 */
public class WeaverGUI {
    /**
     * Main method
     * @param args command line arguments
     */
    public static void main(String[] args) {
        // Create GUI using Swing's event dispatch thread
        SwingUtilities.invokeLater(() -> {
            // Create model
            Model model = new Model();
            
            // Create controller
            Controller controller = new Controller(model);
            
            // Create view
            View view = new View(model, controller);
            
            // Set controller's view
            controller.setView(view);
        });
    }
}